package com.explam.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 家庭资产
 * </p>
 *
 * @author 作者
 * @since 2024-03-25
 */
@Getter
@Setter
  @TableName("sys_property")
@ApiModel(value = "Property对象", description = "家庭资产")
public class Property implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("用户id")
      private Integer userId;

      @ApiModelProperty("用户名")
      private String nickName;

      @ApiModelProperty("资产名称")
      private String propertyName;

      @ApiModelProperty("余额")
      private Float money;

      @ApiModelProperty("备注")
      private String notes;

      @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
      @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
      @ApiModelProperty("创建时间")
      private LocalDateTime createTime;

      @TableLogic
      @ApiModelProperty("是否删除 0-否 1-是")
      private Integer isDel;


}
